/*
* Autor: Juan
* Source: http://jqueryui.com/autocomplete/
*/
function auto_completar_aeropuertos() {   
	var airports = [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ];
    var availableTags = [
		"Saint John's",
		"Georgetown",
		"Buenos Aires",
		"Puerto Príncipe",
		"Nassau",
		"Proximamente.....",
		/*"TOKYO, JP (HND)",
		"LOS ANGELES CA, US (LAX)",
		"PARIS, FR (CDG)",
		"DALLAS/FORT WORTH TX, US (DFW)",
		"FRANKFURT, DE (FRA)",
		"HONG KONG, HK (HKG)",
		"DENVER CO, US (DEN)",
		"DUBAI, AE (DXB)",
		"JAKARTA, ID (CGK)",
		"AMSTERDAM, NL (AMS)",
		"MADRID, ES (MAD)",
		"BANGKOK, TH (BKK)",
		"NEW YORK NY, US (JFK)",
		"SINGAPORE, SG (SIN)",
		"GUANGZHOU, CN (CAN)",
		"LAS VEGAS NV, US (LAS)",
		"SHANGHAI, CN (PVG)",
		"SAN FRANCISCO CA, US (SFO)",
		"PHOENIX AZ, US (PHX)",
		"HOUSTON TX, US (IAH)",
		"CHARLOTTE NC, US (CLT)",
		"MIAMI FL, US (MIA)",
		"MUNICH, DE (MUC)",
		"KUALA LUMPUR, MY (KUL)",
		"ROME, IT (FCO)",
		"ISTANBUL, TR (IST)",
		"SYDNEY, AU (SYD)",
		"ORLANDO FL, US (MCO)",
		"INCHEON, KR (ICN)",
		"NEW DELHI, IN (DEL)",
		"BARCELONA, ES (BCN)",
		"LONDON, GB (LGW)",
		"NEWARK NJ, US (EWR)",
		"TORONTO ON, CA (YYZ)",
		"SHANGHAI, CN (SHA)",
		"MINNEAPOLIS MN, US (MSP)",
		"SEATTLE WA, US (SEA)",
		"DETROIT MI, US (DTW)",
		"PHILADELPHIA PA, US (PHL)",
		"MUMBAI, IN (BOM)",
		"SÃO PAULO, BR (GRU)",
		"MANILA, PH (MNL)",
		"CHENGDU, CN (CTU)",
		"BOSTON MA, US (BOS)",
		"SHENZHEN, CN (SZX)",
		"MELBOURNE, AU (MEL)",
		"TOKYO, JP (NRT)",
		"PARIS, FR (ORY)",
		"MEXICO CITY, MX (MEX)",
		"MOSCOW, RU (DME)",
		"ANTALYA, TR (AYT)",
		"TAIPEI, TW (TPE)",
		"ZURICH, CH (ZRH)",
		"NEW YORK NY, US (LGA)",
		"FORT LAUDERDALE, FL, US (FLL)",
		"WASHINGTON, DC, US (IAD)",
		"PALMA DE MALLORCA, ES (PMI)",
		"COPENHAGEN, DK (CPH)",
		"MOSCOW, RU (SVO)",
		"BALTIMORE MD, US (BWI)",
		"KUNMING, CN (KMG)",
		"VIENNA, AT (VIE)",
		"OSLO, NO (OSL)",
		"JEDDAH, SA (JED)",
		"BRISBANE, AU (BNE)",
		"SALT LAKE CITY UT, US (SLC)",
		"DÜSSELDORF, DE (DUS)",
		"BOGOTA, CO (BOG)",
		"MILAN, IT (MXP)",
		"JOHANNESBURG, ZA (JNB)",
		"STOCKHOLM, SE (ARN)",
		"MANCHESTER, GB (MAN)",
		"CHICAGO IL, US (MDW)",
		"WASHINGTON DC, US (DCA)",
		"BRUSSELS, BE (BRU)",
		"DUBLIN, IE (DUB)",
		"SEOUL, KR (GMP)",
		"DOHA, QA (DOH)",
		"LONDON, GB (STN)",
		"HANGZHOU, CN (HGH)",
		"JEJU, KR (CJU)",
		"VANCOUVER BC, CA (YVR)",
		"BERLIN, DE (TXL)",
		"SAN DIEGO CA, US (SAN)",
		"TAMPA FL, US (TPA)",
		"SÃO PAULO, BR (CGH)",
		"BRASILIA, BR (BSB)",
		"SAPPORO, JP (CTS)",
		"XIAMEN, CN (XMN)",
		"RIYADH, SA (RUH)",
		"FUKUOKA, JP (FUK)",
		"RIO DE JANEIRO, BR (GIG)",
		"HELSINKI, FI (HEL)",
		"LISBON, PT (LIS)",
		"ATHENS, GR (ATH)",
		"AUCKLAND, NZ (AKL)",*/
    ];
    $( "input.aeropuerto" ).autocomplete({
      source: availableTags
    });
}

$(document).ready( function() {
	auto_completar_aeropuertos();
});